package com.cms.service;

import com.cms.exception.SystemDBException;
import com.cms.model.TrAdminUser;

public interface AdminUserService {
     /***
      * 登录用户
      * @param user
      * @return
      */
	 public TrAdminUser login(TrAdminUser user)throws Exception;
	 
	 
	 /***
	  *  更新最近登录时间
	  * @param id
	  */
	 public void updateLoginDate(TrAdminUser user)throws SystemDBException;
	 
	 
	 /***
	  * 
	  * @param user
	  * @throws SystemDBException
	  */
	 public void register(TrAdminUser user)throws SystemDBException;
	 
	 
	 /***
	  * 
	  * @param user
	  * @return
	  */
	 public TrAdminUser getUserInfo(TrAdminUser user);
	 
	 /***
	  * 
	  * @param user
	  * @return
	  */
	 public void updateUserInfo(TrAdminUser user)throws SystemDBException;
	 
	 
	 /***
	  * 
	  * @param user
	  * @throws SystemDBException
	  */
	 public void changeUserStatus(TrAdminUser user)throws SystemDBException;
	 
	 /***
	  * 
	  * @param user
	  * @return
	  */
	 public void deleteUserInfo(TrAdminUser user)throws SystemDBException;
	 
	/***
	 *  修改用户个人信息 
	 * @param user
	 * @throws Exception
	 */
	public void updateSelfUserInfo(TrAdminUser user) throws Exception ;
}
